﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace QBAnalysis.Views
{
	/// <summary>
	/// Interaction logic for View1.xaml
	/// </summary>
	public partial class View1 : UserControl
	{
		public View1()
		{
			Items = new List<Item>();
			for (int i = 0; i < 5; i++)
				Items.Add(new Item { Id = i, Name = "Item " + i });
			Connections = new List<Link>();
			for (int i = 0; i < 4; i++)
				Connections.Add(new Link { From = Items[i].Id, To = Items[i + 1].Id });
			Connections.Add(new Link { From = Items[4].Id, To = Items[0].Id });
			InitializeComponent();

		}

		public List<Item> Items { get; set; }
		public List<Link> Connections { get; set; }
	}
	public class Item
	{
		public int Id { get; set; }
		public string Name { get; set; }
	}

	public class Link
	{
		public object From { get; set; }
		public object To { get; set; }
	}
}

